// 账号管理
import request from '@/utils/request'

export const getList = (params) => {
  return request({
    url: '/steel-arch/client/user/list',
    params:params,
    method: 'get'
  })
}
export const getRole = (params) => {
  return request({
    url: '/steel-arch/client/role/list',
    params:params,
    method: 'get'
  })
}

export const addUser = (params) => {
  return request({
    url: '/steel-arch/client/user/add',
    data:params,
    method: 'post'
  })
}
export const editUser = (params) => {
  return request({
    url: '/steel-arch/client/user/update',
    data:params,
    method: 'post'
  })
}
export const deleteUser = (id) => {
  return request({
    url: '/steel-arch/client/user/del/'+id,
    method: 'post'
  })
}
export const changePassword = (params) => {
  return request({
    url: '/steel-arch/client/user/resert',
    data:params,
    method: 'post'
  })
}
